$flex:("center":center,
    "between":space-between,
    "end":flex-end,
    "start":flex-start,
    "around":space-around,
);
$margin:('10':10px, '12':12px, '18':18px, '20':20px, '30':30px);
$text:(left, center, right);
$size:('12':12px, '14':14px, '15':15px, '16':16px, '17':17px, '18':18px, '20':20px, '22':22px, '24':24px, '32':32px);
$color:('p':#4894ff, "s":#67c23a, "w":#eaa33a, "e":#f56c6b, "m":#303133, "n":#606266, "c":#909399);

@each $key,
$val in $flex {
    .flex-#{$key} {
        justify-content: $val;
        align-items: center;
        display: flex;
    }

    .jus-#{$key} {
        justify-content: $val;
        display: flex;
    }

    .align-#{$key} {
        justify-content: $val;
        flex-direction: column;
        align-items: center;
        display: flex;
    }
}

@each $key,
$val in $margin {
    .margin-l-#{$val} {
        margin-left: $val;
    }

    .margin-r-#{$val} {
        margin-right: $val;
    }

    .margin-t-#{$key} {
        margin-top: $val;
    }

    .margin-b-#{$val} {
        margin-bottom: $val;
    }

    .padding-l-#{$val} {
        padding-left: $val;
    }

    .padding-r-#{$val} {
        padding-right: $val;
    }

    .padding-t-#{$val} {
        padding-top: $val;
    }

    .padding-b-#{$val} {
        margin-bottom: $val;
    }

}

@each $val in $text {
    .text-#{$val} {
        text-align: $val;
    }
}

@each $key,
$val in $size {
    .s-#{$key} {
        font-size: $val;
    }
}

@each $key,
$val in $color {
    .t-color-#{$key} {
        color: $val;
    }

    .bg-color-#{$key} {
        background-color: $val;
    }
}

@keyframes animation {
    0% {
        top: 50%;
        right: 50%;
        width: 100px;
        height: 100px;
        visibility: visible;
    }

    100% {
        top: calc(100% - 115px);
        right: 40px;
        width: 25px;
        height: 25px;
    }
}

body {
    overflow: hidden;
}

.flex-1 {
    flex: 1;
}

.popper__arrow {
    display: none !important;
}

.over-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.line-over-ellipsis {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.el-dropdown-menu {
    width: 110px;
    // min-height: 144px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.29);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7px 0;
}


.el-dropdown-menu__item {
    height: 33px;
    line-height: 33px;
    text-align: center;
    width: 100%;
    padding: 0;
    color: #303133;
}

.animation {
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background-color: #fff;
    position: fixed;
    visibility: hidden;
    box-shadow: 0 0 18px 0 #4894ff;
    z-index: 9999;

    img {
        width: 90% !important;
        height: 90% !important;
    }
}

div,
span,
li,
input,
td,
tr,
p,
button {
    font-family: 'Microsoft Yahei', Arial, Helvetica, 'sans-serif';
}

div,
span,
button {
    cursor: default;
}

// *::-webkit-scrollbar {
//     display: none;
// }

*::-webkit-scrollbar {
    width: 4px;
    /*height: 4px;*/
}

*::-webkit-scrollbar-thumb {
    border-radius: 10px;
    //-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: rgba(171, 178, 185, 0.9);
}

*::-webkit-scrollbar-track {
    //-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: transparent;

}


* {
    box-sizing: border-box;
}

.dis-button {
    border: none;
    background: #DBE1EA;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

.use-btn {
    background-color: #4894FF;
}

.tips {
    color: #4894ff;
    margin-bottom: 16px;
    cursor: pointer;
}

.el-form-item {
    margin-bottom: 30px;
}

.el-input__inner {
    background-color: #eff4f8;
    border: #eff4f8;
    color: #2F3133;
    height: 40px;

    &::-webkit-input-placeholder {
        font-size: 16px;
        color: #909399;
        line-height: 40px;
    }
}

.el-input__icon {
    line-height: 40px;
}

.el-form-item__error {
    margin-left: 20px;

}

.el-form-item.is-error .el-input__inner {
    background: #FFF1F1;
    color: #F76B6C;
}

.el-icon-arrow-up:before {
    font-family: element-icons !important;
    font-size: 16px;
    font-style: normal;
    color: #B6CDD8 !important;
    content: '\e78f';
}


.error {
    .el-input__inner {
        background-color: #FFF1F1;
        border: #FFF1F1;
        color: #F86C6C;

        &::-webkit-input-placeholder {
            font-size: 17px;
            line-height: 40px;
            color: #F86C6C;
        }
    }
}

.el-input__icon {
    color: blue;
}

.pointer {
    cursor: pointer;
}

img {
    vertical-align: bottom;
}

* {
    outline: none;
}

.fade-enter-active,
.fade-leave-active {
    // transition: opacity .1s;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
    // transform: translateX(20px);
}